﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication1.DAO;

namespace WebApplication1
{
    public partial class About : Page
    {
        /// <summary>
        /// 处理格式与前端共享变量
        /// </summary>
        public string visa = null;
        public string visv = null;
        public string visw = null;
        public int count;

        protected void Page_Load(object sender, EventArgs e)
        {
            List<string> a1 = new List<string>();
            List<string> v1 = new List<string>();
            List<string> w1 = new List<string>();

            echartsdb objDao = new echartsdb();
            a1 = objDao.GetAInfo();
            v1 = objDao.GetVInfo();
            w1 = objDao.GetWInfo();

            visa = string.Join(",", a1.ToArray());
            visv = string.Join(",", v1.ToArray());
            visw = string.Join(",", w1.ToArray());

            count = a1.Count();
        }
    }
}